package com.kkks.spring_rest.tick.model;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * AbstractWhoPayment entity provides the base persistence definition of the
 * WhoPayment entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass
public abstract class AbstractWhoPayment implements java.io.Serializable {

	// Fields

	private Short payId;
	private String payCode;
	private String payName;
	private String description;
	private Short sortOrder;
	private Boolean enabled;
	private String payConfig;
	private String image;
	private String payAccount;
	private Integer gmtCreated;
	private Integer gmtModified;

	// Constructors

	/** default constructor */
	public AbstractWhoPayment() {
	}

	/** full constructor */
	public AbstractWhoPayment(String payCode, String payName,
			String description, Short sortOrder, Boolean enabled,
			String payConfig, String image, String payAccount,
			Integer gmtCreated, Integer gmtModified) {
		this.payCode = payCode;
		this.payName = payName;
		this.description = description;
		this.sortOrder = sortOrder;
		this.enabled = enabled;
		this.payConfig = payConfig;
		this.image = image;
		this.payAccount = payAccount;
		this.gmtCreated = gmtCreated;
		this.gmtModified = gmtModified;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "pay_id", unique = true, nullable = false)
	public Short getPayId() {
		return this.payId;
	}

	public void setPayId(Short payId) {
		this.payId = payId;
	}

	@Column(name = "pay_code", unique = true, nullable = false, length = 20)
	public String getPayCode() {
		return this.payCode;
	}

	public void setPayCode(String payCode) {
		this.payCode = payCode;
	}

	@Column(name = "pay_name", nullable = false, length = 120)
	public String getPayName() {
		return this.payName;
	}

	public void setPayName(String payName) {
		this.payName = payName;
	}

	@Column(name = "description", nullable = false, length = 65535)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "sort_order", nullable = false)
	public Short getSortOrder() {
		return this.sortOrder;
	}

	public void setSortOrder(Short sortOrder) {
		this.sortOrder = sortOrder;
	}

	@Column(name = "enabled", nullable = false)
	public Boolean getEnabled() {
		return this.enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	@Column(name = "pay_config", nullable = false, length = 65535)
	public String getPayConfig() {
		return this.payConfig;
	}

	public void setPayConfig(String payConfig) {
		this.payConfig = payConfig;
	}

	@Column(name = "image", nullable = false, length = 32)
	public String getImage() {
		return this.image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	@Column(name = "pay_account", nullable = false, length = 256)
	public String getPayAccount() {
		return this.payAccount;
	}

	public void setPayAccount(String payAccount) {
		this.payAccount = payAccount;
	}

	@Column(name = "gmt_created", nullable = false)
	public Integer getGmtCreated() {
		return this.gmtCreated;
	}

	public void setGmtCreated(Integer gmtCreated) {
		this.gmtCreated = gmtCreated;
	}

	@Column(name = "gmt_modified", nullable = false)
	public Integer getGmtModified() {
		return this.gmtModified;
	}

	public void setGmtModified(Integer gmtModified) {
		this.gmtModified = gmtModified;
	}

}